package com.sqfw.project.wp.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sqfw.framework.web.domain.AjaxResult;
import com.sqfw.project.wp.domain.WpInfo;
import com.sqfw.project.wp.domain.WpOrganizerBack;

/**
 * 承办单位 Service
 *
 * @author tangxt
 * @date 2025-07-09
 * */
public interface WpAssistUnitService {


    /**
     * 判断承办单位是否可以退单(非本单位处理件),超过三天，需要解；超过4天，不允许解锁
     * @param wpInfo
     * @return
     * */
    AjaxResult isOrganizerBack(WpInfo wpInfo);

    /**
     * 承办单位退单
     * @param wpInfo
     * @return
     * */
    AjaxResult organizerBackWpInfo(WpInfo wpInfo);

    /**
     * 判断工单管理页面是否允许解锁，承办单位超过3天到4天才能解锁
     * @param wpInfo
     * @return
     * */
    AjaxResult isUntieOrganizerLock(WpInfo wpInfo);

    /**
     * 工单管理--工单解锁(解锁后，承办单位才能退单)
     * @param wpInfo
     * @return
     *  */
    AjaxResult untieOrganizerLock(WpInfo wpInfo);

    /**
     * 查询承办单位退单的记录,和工单管理解锁记录
     * @param wpOrganizerBack
     * @param page
     * @return
     * */
    Page<WpOrganizerBack> pageWpOrganizerBack(Page page, WpOrganizerBack wpOrganizerBack);


}
